﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Service.Rental
{
    /// <summary>
    /// 业务层统一接口
    /// 得到结果集接口规范
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    public interface IGetService<TEntity> where TEntity : Entity.EntityBase
    {
        /// <summary>
        /// 根据条件得到分页结果集
        /// </summary>
        /// <param name="vp"></param>
        /// <param name="pp"></param>
        /// <returns></returns>
        Entity.PagedList<TEntity> GetPagedListModel(Entity.VPredication vp, Entity.PagingParam pp);
        /// <summary>
        /// 根据主键，得到唯一实体
        /// </summary>
        /// <param name="primaryKey"></param>
        /// <returns></returns>
        TEntity GetSingleModel(object[] primaryKey);
    }
}
